home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / bbs / pad311.zip / PHONE.CTL < prev    next >
Text File  |  1996-07-17  |  15KB  |  425 lines

  1. ; PHONE.CTL - sample phone control file - by Stefan Xenos
  2. ;
  3. ;       This file defines how the callback verifier treats
  4. ;       different phone numbers. You should edit it to
  5. ;       reflect your local calling area before using the
  6. ;       callback verifier. This file controls:
  7. ;
  8. ;       - Which numbers can be dialed without long distance
  9. ;         charges.
  10. ;       - Which long distance numbers should and should
  11. ;         not be called.
  12. ;       - Locked out phone numbers
  13. ;       - How many digits should be dialed for different
  14. ;         sets of phone numbers.
  15. ;
  16. ;       This file replaces the files LOCAL.CTL and LOCKOUT.CTL
  17. ;       which were required in versions 1.1 and earlier.
  18. ;
  19. ;       Format of this file:
  20. ;
  21. ;       - Comments begin with a semicolon (;).
  22. ;       - Every non-blank line either contains a keyword
  23. ;         or a phone number. Keywords all begin with a
  24. ;         number sign (#).
  25. ;       - Spaces, tabs, and the characters "()-" are
  26. ;         ignored in phone numbers, and may be used
  27. ;         for formatting.
  28. ;       - Underscores are ignored within keywords.
  29. ;         In keywords, upper and lower case letters
  30. ;         are treated identically.
  31. ;       - Most keywords can be specified more than once.
  32. ;         A phone number is always effected by the most recent
  33. ;         keyword specified.
  34. ;
  35. ;       Keywords used to define sections of this file:
  36. ;
  37. ;       Keyword:        Meaning:
  38. ;       --------------------------------------------------------------
  39. ;       #lockout        The phone numbers that follow should not
  40. ;                       be dialed under any circumstances. This
  41. ;                       should include emergency numbers, the numbers
  42. ;                       of harassing users, etc.
  43. ;
  44. ;       #local          The numbers that follow may be dialed without
  45. ;                       long distance charges.
  46. ;
  47. ;       #ld             The numbers that follow are long distance.
  48. ;                       The BBS will only dial these numbers if
  49. ;                       long distance phone numbers are enabled in
  50. ;                       CALLBACK.CTL.
  51. ;
  52. ;       #ld_lockout     The numbers that follow are long distance.
  53. ;                       The BBS will not dial these numbers, no
  54. ;                       matter what the settings in CALLBACK.CTL are.
  55. ;                       This is useful for preventing the BBS from
  56. ;                       dialing numbers in other countries, etc.
  57. ;                       I recommend putting the lines
  58. ;
  59. ;                               #ld_lockout
  60. ;                               *
  61. ;
  62. ;                       near the end of the file. This will cause
  63. ;                       all unknown phone numbers to be treated
  64. ;                       as being too long distance to dial.
  65. ;
  66. ;       #ask_local      Use this keyword to define a group of
  67. ;                       phone numbers which may or may not be
  68. ;                       local calls. If the user's phone number
  69. ;                       is found in the list, they will be asked
  70. ;                       if their number is a local call. If they
  71. ;                       answer yes, this behaves just like #local.
  72. ;                       Otherwise, it behaves just like #ld.
  73. ;
  74. ;       #end            Everything beyond this keyword is ignored
  75. ;                       This must appear at the end of the file.
  76. ;
  77. ;       Miscellaneous keywords:
  78. ;
  79. ;       Keyword:        Meaning:
  80. ;       --------------------------------------------------------------
  81. ;       #ld_prefix      Defines a prefix which is added to long
  82. ;                       distance numbers before dialing them.
  83. ;                       This is usually set to 1.
  84. ;
  85. ;       #ld_start       Defines the first digit to be dialed of
  86. ;                       the following long distance numbers.
  87. ;                       For example, specifying a value of 2
  88. ;                       will cause the first digit of the phone
  89. ;                       number to be skipped (the 2nd digit would
  90. ;                       be the first one dialed). Since every
  91. ;                       calling area I know of requires the entire
  92. ;                       phone number to be dialed for ld numbers,
  93. ;                       this should usually be set to 1.
  94. ;
  95. ;       #ld_len         Sets the number of digits to be dialed
  96. ;                       in the following long distance numbers.
  97. ;
  98. ;
  99. ;       #local_prefix   Defines a prefix which is added to local
  100. ;                       numbers before dialing them. This is
  101. ;                       usually left blank.
  102. ;
  103. ;       #local_start    Sets the first digit of local phone numbers
  104. ;                       to dial. For example: My area has 10 digit
  105. ;                       phone numbers. The last 7 digits are dialed
  106. ;                       for local calls. In my case, I set this to
  107. ;                       4 (the first digit being dialed is the 4th
  108. ;                       digit, skipping the 3 digit area code).
  109. ;
  110. ;       #local_len      Sets the number of digits to dial for local
  111. ;                       phone numbers.
  112. ;
  113. ;       #start_time     Defines the earliest time that callback verifications
  114. ;                       may be performed.
  115. ;
  116. ;       #end_time       Defines the latest time that callback verifications
  117. ;                       may be performed.
  118. ;
  119. ;       #write          The remainder of the line is written to the
  120. ;                       user's screen when and if that line is
  121. ;                       reached.
  122. ;
  123. ;       #city           The remainder of the line contains a city name.
  124. ;                       The following phone numbers are said to belong
  125. ;                       to this city. If the user's phone number matches
  126. ;                       any of the phone numbers that belong to this
  127. ;                       city, the city name will be displayed to the user.
  128. ;                       By default, padlock will also change the user's
  129. ;                       city name to the city that their phone number
  130. ;                       belongs to (although this behaviour can be
  131. ;                       turned on and off with the num_update_city token
  132. ;                       in SETTINGS.MH). You can end a city with either
  133. ;                       another #city token or an #end_city token.
  134. ;
  135. ;       #end_city       Defines the end of a city. 
  136. ;
  137. ;
  138. ;       Note: #ld_prefix, #ld_start, and #ld_len must be specified
  139. ;             before any long distance phone numbers are. Also,
  140. ;             #local_prefix, #local_start, and #local_len must
  141. ;             preceed any local phone numbers.
  142. ;
  143. ;       It is possible to define #local_len, #local_start, and
  144. ;       #local_prefix more than once in this file. This is useful
  145. ;       for sysops who live in an area where the number of digits
  146. ;       to be be dialed depends on the user's phone number. Sysops
  147. ;       who use phone extenders or some long distance plan (like
  148. ;       UniTel) that requires you to dial another phone number
  149. ;       before the user's number can use this to specify which
  150. ;       numbers should be dialed using that long distance carrier
  151. ;       and what the dialing prefix should be.
  152. ;
  153. ;       The following wildcards may be used for phone numbers:
  154. ;
  155. ;               *       Skip 0 or more characters.
  156. ;               ?       Skip 1 character
  157. ;               []      Match any one of the characters
  158. ;                       between the brackets.
  159. ;               !       Match anything but the following character
  160. ;                       If this is followed by the [] wildcard,
  161. ;                       it means match anything but the characters
  162. ;                       within the brackets.
  163. ;
  164. ;       Example:
  165. ;
  166. ;               If the user's phone number was 6132577636,
  167. ;               it would match with all of the following:
  168. ;
  169. ;               (613) 257-*
  170. ;               *
  171. ;               613257*
  172. ;               *7636
  173. ;               61325?-7636
  174. ;               61*36
  175. ;               (613) 257-7636
  176. ;               *257*
  177. ;               613*
  178. ;               6132577636*
  179. ;               61325[67]*
  180. ;